
package com.market.web.form;

import java.util.Date;

import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;

public class ProductForm extends ActionForm
{

    // Fields

    /**
     * 
     */
    private static final long serialVersionUID = 4172956152397387110L;

    private long id;

    private String suppliername;

    private long supplierid;

    private String category;

    private String name;

    private String standard;

    private float price;

    private float vipprice;

    private float dprice;

    private String description;

    private Date adddate;

    private int hot;

    private String type;

    private String pic;

    private String unit;

    private FormFile img;

    // Constructors

    public FormFile getImg()
    {
        return img;
    }

    public void setImg(FormFile img)
    {
        this.img = img;
    }

    /** default constructor */
    public ProductForm()
    {
    }

    // Property accessors

    public long getId()
    {
        return this.id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getCategory()
    {
        return this.category;
    }

    public void setCategory(String category)
    {
        this.category = category;
    }

    public String getName()
    {
        return this.name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getStandard()
    {
        return this.standard;
    }

    public void setStandard(String standard)
    {
        this.standard = standard;
    }

    public float getPrice()
    {
        return this.price;
    }

    public void setPrice(float price)
    {
        this.price = price;
    }

    public float getVipprice()
    {
        return this.vipprice;
    }

    public void setVipprice(float vipprice)
    {
        this.vipprice = vipprice;
    }

    public String getDescription()
    {
        return this.description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public Date getAdddate()
    {
        return this.adddate;
    }

    public void setAdddate(Date adddate)
    {
        this.adddate = adddate;
    }

    public int getHot()
    {
        return this.hot;
    }

    public void setHot(int hot)
    {
        this.hot = hot;
    }

    public String getType()
    {
        return this.type;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getPic()
    {
        return this.pic;
    }

    public void setPic(String pic)
    {
        this.pic = pic;
    }

    public float getDprice()
    {
        return dprice;
    }

    public void setDprice(float dprice)
    {
        this.dprice = dprice;
    }

    public String getUnit()
    {
        return unit;
    }

    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public long getSupplierid()
    {
        return supplierid;
    }

    public void setSupplierid(long supplierid)
    {
        this.supplierid = supplierid;
    }

    public String getSuppliername()
    {
        return suppliername;
    }

    public void setSuppliername(String suppliername)
    {
        this.suppliername = suppliername;
    }
}
